import request from '@/config/axios'


// 简历投递 VO
export interface JobResumeInfoVO {
  jobId: number // FK工作id
  resumeUserId: number // FK投递者id
  resumeId: number // FK简历id
}
// 投递记录 VO
export interface StudentJobResumeInfoVO {
  jobName: string
  salaryRangeFrom: number
  salaryRangeTo: number
  jobCity: string
  jobRequireEdu: number
  jobResumeStatus: number
  createTime: Date
  nickName: string
  avatar: string

}

// 简历投递 API
export const JobResumeInfoApi = {
  // 查询简历投递分页
  getJobResumeInfoPage: async (params: any) => {
    return await request.get({ url: `/dbit/job-resume-info/page`, params })
  },

  // 查询简历投递详情
  getJobResumeInfo: async (id: number) => {
    return await request.get({ url: `/dbit/job-resume-info/get?id=` + id })
  },

  // 新增简历投递
  createJobResumeInfo: async (jobId: number) => {
    return await request.get({ url: `/dbit/job-resume-info/create?jobId=`+jobId })
  },

  // 修改简历投递
  updateJobResumeInfo: async (data: JobResumeInfoVO) => {
    return await request.put({ url: `/dbit/job-resume-info/update`, data })
  },

  // 删除简历投递
  deleteJobResumeInfo: async (id: number) => {
    return await request.delete({ url: `/dbit/job-resume-info/delete?id=` + id })
  },

  // 导出简历投递 Excel
  exportJobResumeInfo: async (params) => {
    return await request.download({ url: `/dbit/job-resume-info/export-excel`, params })
  },
  //获取学生简历信息
  getStudentJobResumeInfoPage: async (params: any) => {
    return await request.get({ url: `/dbit/student-job-resume-info/page`, params })
  }
}





